import request from '@/utils/request'

// 查询预案定义列表
export function listAlarm(query) {
  return request({
    url: '/fj/conf_alarm/list',
    method: 'get',
    params: query
  })
}

// 查询预案定义详细
export function getAlarm(id) {
  return request({
    url: '/fj/conf_alarm/' + id,
    method: 'get'
  })
}

// 新增预案定义
export function addAlarm(data) {
  return request({
    url: '/fj/conf_alarm',
    method: 'post',
    data: data
  })
}

// 修改预案定义
export function updateAlarm(data) {
  return request({
    url: '/fj/conf_alarm',
    method: 'put',
    data: data
  })
}

// 删除预案定义
export function delAlarm(id) {
  return request({
    url: '/fj/conf_alarm/' + id,
    method: 'delete'
  })
}

export function getAll() {
  return request({
    url: '/fj/conf_alarm/listAll',
    method: 'get'
  })
}
// 